package com.wh.wisdomsite.xbox.pr.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.wh.wisdomsite.xbox.ba.entity.CommonDict;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 单位实体
 *
 * @version V1.0
 * @Package: com.wh.wisdomsite.xbox.pr.entity
 * @author: 丁奕
 * @date: 2018-08-03 17:12
 * @Copyright 公司版权所有
 * @Company 贵州万华科技有限公司Copyright (c) 2016
 **/
@TableName("pr_unit")
public class Unit extends Model<Unit> {


    /**
     *PK, 单位编号
     */
    @TableId(type = IdType.AUTO)
    private Integer uId;

    /**
     *  所属公司编号
     */
    @TableField("companyId")
    private Integer companyId;

    /**
     *所属父级编号
     */
    @TableField("uParentId")
    private Integer uParentId;

    /**
     *单位名称
     */
    @TableField("unitName")
    private String unitName;

    /**
     *单位类别，对应字典 
     */
    @TableField("unitModel")
    private String unitModel;

    /**
     * 单位类别，字典实体
     */
    @TableField( exist = false )
    private CommonDict unitModelCD;

    /**
     *单位编码, 自定义 
     */
    @TableField("unitCode")
    private String unitCode;

    /**
     *单位性质，对应字典 
     */
    @TableField("unitProperty")
    private String unitProperty;

    /**
     *单位法人
     */
    @TableField("unitLeader")
    private String unitLeader;

    /**
     *单位营业执照代码（根据需求，在三证合一后，此字段不需要）
     */
    @TableField("unitLicenseCode")
    private String unitLicenseCode;

    /**
     *社会统一信用代码
     */
    @TableField("unitOrgCode")
    private String unitOrgCode;

    /**
     *单位注册资金
     */
    @TableField("unitRegMoney")
    private String unitRegMoney;

    /**
     *单位成立时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("unitBuildTime")
    private Date unitBuildTime;

    /**
     *联系人
     */
    @TableField("unitMgr")
    private String unitMgr;

    /**
     *联系人手机号
     */
    @TableField("unitMgrPhone")
    private String unitMgrPhone;

    /**
     *单位座机
     */
    @TableField("unitSitePhone")
    private String unitSitePhone;

    /**
     *单位传真
     */
    @TableField("unitFix")
    private String unitFix;

    /**
     *单位网站站点
     */
    @TableField("unitSite")
    private String unitSite;

    /**
     *单位邮政编码
     */
    @TableField("unitPostCode")
    private String unitPostCode;

    /**
     *单位所属“省”
     */
    @TableField("unitProvice")
    private String unitProvice;

    /**
     *单位所属“市”
     */
    @TableField("unitCity")
    private String unitCity;

    /**
     *单位所属“区/县”
     */
    @TableField("unitDistrict")
    private String unitDistrict;

    /**
     *单位地址详情
     */
    @TableField("unitAddress")
    private String unitAddress;

    /**
     *单位状态
     */
    @TableField("unitState")
    private String unitState;

    /**
     *单位描述
     */
    @TableField("unitRemark")
    private String unitRemark;

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }
    public Integer getUId() {
        return uId;
    }

    public void setUId(Integer uId) {
        this.uId = uId;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    public Integer getuParentId() {
        return uParentId;
    }

    public void setuParentId(Integer uParentId) {
        this.uParentId = uParentId;
    }
    public Integer getUParentId() {
        return uParentId;
    }

    public void setUParentId(Integer uParentId) {
        this.uParentId = uParentId;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getUnitModel() {
        return unitModel;
    }

    public void setUnitModel(String unitModel) {
        this.unitModel = unitModel;
    }

    public CommonDict getUnitModelCD() {
        return unitModelCD;
    }

    public void setUnitModelCD(CommonDict unitModelCD) {
        this.unitModelCD = unitModelCD;
    }

    public String getUnitCode() {
        return unitCode;
    }

    public void setUnitCode(String unitCode) {
        this.unitCode = unitCode;
    }

    public String getUnitProperty() {
        return unitProperty;
    }

    public void setUnitProperty(String unitProperty) {
        this.unitProperty = unitProperty;
    }

    public String getUnitLeader() {
        return unitLeader;
    }

    public void setUnitLeader(String unitLeader) {
        this.unitLeader = unitLeader;
    }

    public String getUnitLicenseCode() {
        return unitLicenseCode;
    }

    public void setUnitLicenseCode(String unitLicenseCode) {
        this.unitLicenseCode = unitLicenseCode;
    }

    public String getUnitOrgCode() {
        return unitOrgCode;
    }

    public void setUnitOrgCode(String unitOrgCode) {
        this.unitOrgCode = unitOrgCode;
    }

    public String getUnitRegMoney() {
        return unitRegMoney;
    }

    public void setUnitRegMoney(String unitRegMoney) {
        this.unitRegMoney = unitRegMoney;
    }

    public Date getUnitBuildTime() {
        return unitBuildTime;
    }

    public void setUnitBuildTime(Date unitBuildTime) {
        this.unitBuildTime = unitBuildTime;
    }

    public String getUnitMgr() {
        return unitMgr;
    }

    public void setUnitMgr(String unitMgr) {
        this.unitMgr = unitMgr;
    }

    public String getUnitMgrPhone() {
        return unitMgrPhone;
    }

    public void setUnitMgrPhone(String unitMgrPhone) {
        this.unitMgrPhone = unitMgrPhone;
    }

    public String getUnitSitePhone() {
        return unitSitePhone;
    }

    public void setUnitSitePhone(String unitSitePhone) {
        this.unitSitePhone = unitSitePhone;
    }

    public String getUnitFix() {
        return unitFix;
    }

    public void setUnitFix(String unitFix) {
        this.unitFix = unitFix;
    }

    public String getUnitSite() {
        return unitSite;
    }

    public void setUnitSite(String unitSite) {
        this.unitSite = unitSite;
    }

    public String getUnitPostCode() {
        return unitPostCode;
    }

    public void setUnitPostCode(String unitPostCode) {
        this.unitPostCode = unitPostCode;
    }

    public String getUnitProvice() {
        return unitProvice;
    }

    public void setUnitProvice(String unitProvice) {
        this.unitProvice = unitProvice;
    }

    public String getUnitCity() {
        return unitCity;
    }

    public void setUnitCity(String unitCity) {
        this.unitCity = unitCity;
    }

    public String getUnitDistrict() {
        return unitDistrict;
    }

    public void setUnitDistrict(String unitDistrict) {
        this.unitDistrict = unitDistrict;
    }

    public String getUnitAddress() {
        return unitAddress;
    }

    public void setUnitAddress(String unitAddress) {
        this.unitAddress = unitAddress;
    }

    public String getUnitState() {
        return unitState;
    }

    public void setUnitState(String unitState) {
        this.unitState = unitState;
    }

    public String getUnitRemark() {
        return unitRemark;
    }

    public void setUnitRemark(String unitRemark) {
        this.unitRemark = unitRemark;
    }

    @Override
    protected Serializable pkVal() {
        return this.uId;
    }
}
